const defaultState = {
    collapsed: false
}
export default function reducer(state = defaultState, action) {
    const { type, data } = action
    switch (type) {
        case 'change':
            return data
         default:
            return state
    }
}